package com.yuwei.module_parking.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.AddParkingBody
import com.bw.lib_common.entity.AddParkingEntity
import com.bw.lib_common.entity.ParkingEntity
import com.bw.lib_common.entity.Res
import com.bw.lib_http.Const
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface ParkingApiService:BaseApiServer {
    @GET(Const.GET_PARKING_LOT_LIST_URL)
    suspend fun parkingManage(@Path("areaId")areaId:Int):Res<ParkingEntity>
    @DELETE(Const.GET_PARKING_LOT_DETAIL_URL)
    suspend fun parking_delete(@Path("id")id:Int):Res<String>
    @POST(Const.ADD_PARKING_LOT_URL)
    suspend fun add_Parking_list(@Body addParkingBody: AddParkingBody):Res<AddParkingEntity>
}